package com.gm.wj.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import javax.validation.constraints.NotEmpty;

/**
 * @program: wj
 * @description: 拼团成员表
 * @author: Huang_shengjun
 * @create: 2020-11-20 12:26
 **/
@Data
@Entity
@Table(name = "pt_member")
@ToString
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class PtMember {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int id;

    /**
     * 拼团成员
     */
    private String username;

    /**
     * 拼团编号
     */
    private String fatherId;

    /**
     * 团员编号
     */
    private String childrenId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 团长id
     */
    private String captainId;


    /**
     * 商品id
     */
    private String productId;

    /**
     * 拼团价格
     */
    private String ptTuition;

    /**
     * 加入时间
     */
    private String createTime;

    /**
     * 0:未付款 1:加团成功
     */
    private int ptStatus;

}
